CONTINUED
FRACTIONS

"Continued fractions are objectively the best in approximation technology" (Evelyn Lamb).

"The best approximation of irrational numbers" (A. Khinchin).

"Mathematical representations more natural than decimal" (Wikipedia).



Concepto

Continued fractions are a form of recursive specification of the real numbers that allow their structure and internal arithmetic properties to be revealed, constituting an alternative to the use of decimals. For example, the rational number can be decomposed as follows: Therefore, In this example, you can see that a continued fraction can be represented by a sequence of numbers (which are called partial, incomplete, or integer quotients). In the example, the sequence is (4, 3, 1, 4, 2).

If the fraction were less than 1, then the first quotient would be 0. For example, the fraction 42/179 would be represented by the sequence (0, 4, 3, 1, 4, 2) and the continued fraction is: The successive values of the continued fraction that approximate them towards their final value are called "partial continued fractions". In the case of our example they are:
Structure of partial quotients of a continued fraction

Every rational number can be decomposed into a finite continued fraction, i.e., the process of obtaining the quotients ends after a finite number of steps. This is easily demonstrated by Euclid's algorithm for obtaining the greatest common divisor of two numbers.

Every irrational number decomposes into infinitely many continued fractions.

If the continued fraction corresponding to an irrational number r is periodic, then r is the solution of a second degree equation.

For example, for √2, the quotients are: (1, 2, 2, ...) eq. (1 2☆)

This can be shown by making √2 = 1 + x. Squaring, we obtain and therefore, From this last expression it follows that the continued fraction is infinite: And the partial continued fractions are: Analogously, one has:
Generalized continued fractions

A generalized continued fraction is one in which the numerators of the fractions and the partial quotients can be any values, real or complex. It has the form In this case, the representation could be a sequence of subsequences (ai, bi). For example:
Square roots as continued fractions

The square root of a number r, √r, can be expressed: It follows that √r can be expressed as a continued fraction in many ways, depending on the value of a. For example:

rar
21√2 = 1 + 1/(1 + √2)
22√2 = 2 + (−2)/(2 + √2)
23√2 = 3 + (−7)/(3 + √2)
24√2 = 4 + (−14)/(4 + √2)

For the continued fraction to be simple, it must be satisfied that (ra2) = 1. For r = 2, a must be 1. For r = 5, a must be 2. Etc.


Continued fractions and quadratic equations

From the second degree equation x2 + ax = b, we can deduce the recursive expression That is, the natural solution of a quadratic equation is a continued fraction. For example, in the case a = b = 1, we have the equation x2 + x = 1, and the continued fraction represented by the recursive expression stands for φ = 1/Φ = 0.6180339... (inverse of the golden ratio). The golden ratio Φ is Φ = 1 + φ = 1.6180339...

The partial quotients of a continued fraction are repeated if and only if they represent a quadratic irrational, that is, if it is a solution of a second degree equation with integer quotients. For example, (1, 1, 1, 1, ...) represents the golden ratio and (1, 2, 2, 2, 2, ...) represents √2.


Advantages of using continued fractions versus decimals
Algoritmos

Addenda

Euclid's algorithm of the m.c.d. (greatest common divisor) of two numbers For example, m.c.d. of 114 and 421:
A little history

The history of continued fractions begins with Euclid's algorithm for calculating the m.c.d. of two natural numbers, where the same operations are performed as in a continued fraction.

The first written record comes from Bombelli's treatise on algebra (1572). Bombelli found a procedure for approximating the roots of quadratic equations by continued fractions. Twenty-four years later, the Italian Pietro Antonio Cataldi (1548-1626) expressed square roots by continued fractions and presented the first formal notation for generalized continued fractions.

John Wallis (1616-1703) introduced the term continued fraction.

Englishman William Brounker (1620-1684) developed the continued fraction method for π.

Euler proved that every irrational quadratic equation can be represented by a simple periodic continued fraction. Lagrange proved the opposite: any periodic continued fraction represents a solution of a quadratic equation.


Bibliography